module.exports = {
  /*
  ** Headers of the page
  */
  head: {
    title: 'myserver',
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: 'Nuxt.js project' },
      {'http-equiv': 'description', content: '薛纪昌的个人网站，主要发布前端的学习随笔与心得。'},
      {name: 'description', content: '薛纪昌的个人网站，主要发布前端的学习随笔与心得。'},
      {name: 'og:description', content: '薛纪昌的个人网站，主要发布前端的学习随笔与心得。'},
      {name: 'keywords', content: '薛纪昌 | 薛纪昌的个人博客 | 薛纪昌的个人网站 | xuejichang | 个人博客 | 个人网站 | 前端博客'},
      {name: 'og:title', content: '薛纪昌 | 薛纪昌的个人博客'},
      {name: 'author', content: '薛纪昌,xuejichang,jichangee'},
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
      { rel: 'stylesheet', href: 'https://www.xuejichang.cn/cdn/css/editormd.min.css' },
    ]
  },
  /*
  ** Customize the progress bar color
  */
  loading: { color: '#3B8070' },
  /*
  ** Build configuration
  */
  build: {
    /*
    ** Run ESLint on save
    */
    extend (config, { isDev, isClient }) {
      if (isDev && isClient) {
        config.module.rules.push({
          enforce: 'pre',
          test: /\.(js|vue)$/,
          loader: 'eslint-loader',
          exclude: /(node_modules)/
        })
      }
    }
  }
}
